package com.fintech.common.vo;

import java.io.Serializable;

/**
 * 增加一种兼容的返回类
 * @author wanggang
 *
 */
public class CommonResult implements Serializable {

	private static final long serialVersionUID = -7984302715541084936L;
	private String code;
	private String msg;
	private Object data;
	
	public CommonResult() {}
	
	public CommonResult(String code,String msg,Object data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}
	
	public CommonResult(String code,String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public String getCode() {
		return code;
	}
	
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public String toString() {
		return "CommonResult [code=" + code + ", msg=" + msg + ", data=" + data + "]";
	}
	
}
